package com.wd.center.pattern.singleton;

//懒汉式模式
public class SlobSingleton {
    private static SlobSingleton slobSingleton;

    public static SlobSingleton getInstance() {
        if(slobSingleton==null) {
            return new SlobSingleton();
        }
        return slobSingleton;

    }

}
